package com.woniuxy.commons.entity.wyh;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * @author wangyanhui
 * @date 2020/7/20 - 11:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ResponseTable<T> {
    private static final  int SUCCESS = 0;//成功
    private final static int FAIL = 400;//失败

    private int code;//状态码
    private String msg;//消息
    private int count;//总记录数
    private List<T> data;

    public ResponseTable(int code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
